package com.diandian.backend.entrance.client.dto;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class MeituanOrderKeyPointUploadDTO implements Serializable {

    private String orderNum;
    private String pointType;

    public void check(){
        if(this.orderNum == null || "".equals(this.orderNum)){
            throw new DefaultException("订单号不能为空");
        }
        if(this.pointType == null || "".equals(this.pointType)){
            throw new DefaultException("节点类型不能为空");
        }
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getPointType() {
        return pointType;
    }

    public void setPointType(String pointType) {
        this.pointType = pointType;
    }
}